package com.tengju.data.domain.model.motivation;

import com.tengju.user.domain.model.Row;
import com.tengju.user.domain.model.user.UserIdCode;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface DwsBonusTopMonthRepository {

    /**
     * 月度收益个人排行
     */
    Row getSelfMonthRank(UserIdCode userIdCode,
                         Integer month,
                         Integer lastMonth,
                         Integer topLimit);

    /**
     * 月度收益总排行
     */
    List<Row> getAllMonthRank(Integer month,
                              Integer topLimit,
                              Integer offset,
                              Integer limit);

    List<Row> getByIdCodeAndMonth(List<UserIdCode> idCodeList,
                                  Integer month,
                                  Integer topLimit);

    Integer getTotal(Integer month,
                     Integer topLimit);
}
